home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 5
/
BBS in a Box -Volume V (BBS in a Box) (April 1992).iso
/
Files
/
Word
/
Ae-An
/
Alpha.20.release.cpt
/
AlphaBits
< prev
next >
Wrap
Text File
|
1990-08-23
|
10KB
|
387 lines
; Uncomment the following line if you have a foreign keyboard
; (set noRemapOption on)
;====== Machine-independent portion =================================
(ascii 96 startEscape)
(ascii 27 startEscape)
(ascii 13 carriageReturn)
(ascii 09 doTab)
(ascii 28 backwardChar) ; left arrow
(ascii 28 <z> beginningOfLine)
(ascii 28 <s> backwardCharSelect)
(ascii 28 <sz> beginningLineSelect)
(ascii 29 forwardChar) ; right arrow
(ascii 29 <z> endOfLine)
(ascii 29 <s> forwardCharSelect)
(ascii 29 <sz> endLineSelect)
(ascii 30 previousLine) ; up arrow
(ascii 30 <s> prevLineSelect)
(ascii 30 <z> beginningOfBuffer)
(ascii 30 <sz> beginningBufferSelect)
(ascii 30 <c> scrollUpLine)
(ascii 31 nextLine) ; down arrow
(ascii 31 <z> endOfBuffer)
(ascii 31 <s> nextLineSelect)
(ascii 31 <sz> endBufferSelect)
(ascii 31 <c> scrollDownLine)
(bind 'a' <zo> insertAscii)
(bind 'a' <zos> getAscii)
(bind '`' startEscape)
(bind 'l' <xz> currentPosition)
(bind 'l' <cz> loadCmd)
(bind 'f' <cz> freeMem)
(bind '}' <s> electricRightBrace)
(bind '{' <s> electricLeftBrace)
(bind ';' doElectricSemi)
(bind 'u' <x> upcaseRegion)
(bind 'd' <x> downcaseRegion)
(bind 'c' <x> capitalizeRegion)
(bind 'r' <x> shiftRegionRight)
(bind 'l' <x> shiftRegionLeft)
(bind 'r' <e> repeatSearchBackward)
(bind 's' <e> repeatSearchForward)
(bind '\0f' <z> repeatSearchBackward)
(bind '\01' <z> repeatSearchForward)
(bind '(' <sx> startKeyboardMacro)
(bind ')' <sx> endKeyboardMacro)
(bind 'e' <x> executeKeyboardMacro)
(bind 'n' <x> nextWindow)
(bind 'p' <x> prevWindow)
(bind 'x' <x> exchangePointAndMark)
(bind 'x' <zx> exchangePointAndMark)
(bind 'j' <e> fillRegion)
(bind 'p' <e> fillParagraph)
(bind 'b' <e> backwardWord)
(bind 'd' <e> deleteWord)
(bind 'f' <e> forwardWord)
(bind 'g' <e> gotoLine)
(bind 'h' <e> backwardDeleteWord)
(bind 'n' <e> nextFunc)
(bind '<' <se> beginningOfBuffer)
(bind '>' <se> endOfBuffer)
(bind 't' <e> findTag)
(bind 'k' <e> keyCode)
(set numWinsToTile 2)
(set electricSemi on)
(set elecLBrace on)
(set elecRBrace on)
(set fontSize 9)
(set defWidth 506)
(set defHeight 600) ; 336 for classic mac
(set fullScreen on)
(set startWithNew off)
(set fillColumn 75)
(set useBackupFolder on)
(set backupFolder "jpl341:Pete:back")
(set currFileSet "edit")
(set includePath "Hard Disk:C:THINK C:Mac #includes;Hard Disk:C:THINK C:C Libraries:headers;;")
(set funcExpr "^[^ \t#]*(.*)$")
(set tagFile "jpl341:Pete:cTAGS")
; Example macros
(define quoteLastWord
backwardWord
type "'"
forwardWord
type "'"
)
(define normalLeftBracket
type "{"
)
(define normalRightBracket
type "}"
)
(define normalSemiColon
type ";"
)
(define newBlock
type " "
electricLeftBrace
carriageReturn
electricRightBrace
previousLine
previousLine
endOfLine
)
(define hiliteCurrWord
forwardWord
setMark
backwardWord
markHilite
)
; This macro is useful in finding the definition of a local variable.
(define localDef
saveVars ; Save variables' values.
hiliteCurrWord
copyclip "word" ; Copy selected text to clipboard 'word'
set forward off ; Kludged search for beginning of proc.
set regExpr on
search "^{"
set forward on
set regExpr off
set matchWords on
clipsearch "word" ; Use the contents of the clipboard 'word'
; to search for our variable.
restoreVars ; Restore the variables' original values.
)
(define globalDef
saveVars
hiliteCurrWord
copyclip "word"
beginningOfBuffer
set forward on
set regExpr off
set matchWords on
clipsearch "word"
restoreVars)
; This macro is included as an example. I doubt it is too useful in and of
; itself :-).
(define commentWord
mark "one" ; Save our inital position
hiliteCurrWord ; Hilite the current word
backwardChar ; This de-selects the word and moves the
; insertion point to the start. Deselecting
; also always sets the mark at the end of the
; selected text.
type "/* "
exchangePointAndMark ; Move to what used to be the end of the word
3 forwardChar ; and then adjust for our earlier typing.
type " */"
goto "one" ; Move to what used to be our original
3 forwardChar) ; position and then adjust for typing.
(define commentLine
mark "one"
beginningOfLine
type "/* "
endOfLine
type " */"
goto "one"
3 forwardChar)
(define commentBox
acmd "Comment Box")
(define uncommentBox
set matchWords 0
set forward 0
set regExpr 0
set ignoreCase 1
search "/*"
beginningOfLine
mark "one"
set matchWords 0
set forward 1
set regExpr 0
set ignoreCase 1
search "*/"
endOfLine
nextLine
beginningOfLine
goto "one"
markHilite
acmd "UnComment Box"
)
(define transposeWords
forwardWord
setMark
backwardWord
cut
deleteChar
forwardWord
type " "
paste
)
(define transposeChars
setMark
forwardChar
cut
backwardChar
yank
forwardChar
)
(bind 'c' <zc> commentBox)
(bind 'u' <zc> uncommentBox)
(bind ''' <z> quoteLastWord)
(bind '{' <zs> normalLeftBracket)
(bind '}' <zs> normalRightBracket)
(bind ';' <z> normalSemiColon)
(bind '{' <se> newBlock)
(bind 'h' <z> hiliteCurrWord)
(bind '\56' backwardWord) ; Keypad 4
(bind '\56' <c> backwardDeleteWord)
(bind '\58' forwardWord) ; Keypad 6
(bind '\58' <c> deleteWord)
(bind '\47' insertToTop) ; Keypad Clear
; Never bind Keypad /
; Never bind Keypad *
(bind '\52' pageBack) ; Keypad 0
(bind '\4c' pageForward) ; Keypad Enter
(bind '\55' repeatSearchForward) ; Keypad 3
(bind '\53' repeatSearchBackward) ; Keypad 1
(bind '\53' <c> prevFunc) ; ^Keypad 1
(bind '\55' <c> nextFunc) ; ^Keypad 3
(bind '\54' winSearch) ; Keypad 2
(bind '\41' endOfBuffer) ; Keypad .
(bind '\57' exchangePointAndMark) ; Keypad 5
(bind '\59' backwardDeleteWord) ; Keypad 7
(bind '\5c' deleteWord) ; Keypad 9
;====== Machine-dependent portion =================================
; #define OLDMAC
#ifdef OLDMAC
(bind 's' <o> winSearch)
(bind 'a' <o> beginningOfLine)
(bind 'b' <o> backwardChar)
(bind 'd' <o> deleteChar)
(bind 'f' <o> forwardChar)
(bind 'e' <o> endOfLine)
(bind 'g' <o> abortEm)
(bind 'k' <o> killLine)
(bind 'l' <o> insertToTop)
(bind 'p' <o> previousLine)
(bind 'n' <o> nextLine)
(bind 'o' <o> openLine)
(bind 'u' <o> iterationCount)
(bind 'v' <o> pageForward)
(bind 'z' <o> pageBack)
(bind 'v' <e> pageBack)
(bind 'w' <o> cut)
(bind 'w' <e> copy)
(bind ' ' <o> setMark)
(bind 'x' <o> prefixChar)
(bind 'y' <o> yank)
(bind '\35' startEscape) ; 'esc' key
#else OLDMAC
(bind 's' <z> winSearch)
(bind 'a' <z> beginningOfLine)
(bind 'b' <z> backwardChar)
(bind 'd' <z> deleteChar)
(bind 'f' <z> forwardChar)
(bind 'e' <z> endOfLine)
(bind 'g' <z> abortEm)
(bind 'k' <z> killLine)
(bind 'l' <z> insertToTop)
(bind 'p' <z> previousLine)
(bind 'n' <z> nextLine)
(bind 'o' <z> openLine)
(bind 'u' <z> iterationCount)
(bind 'v' <z> pageForward)
(bind 'z' <z> pageBack)
(bind 'v' <e> pageBack)
(bind 'w' <z> cut)
(bind 'w' <e> copy)
(bind ' ' <z> setMark)
(bind 'x' <z> prefixChar)
(bind 'y' <z> yank)
(bind '\7a' undo) ; F1
(bind '\78' cut) ; F2
(bind '\63' copy) ; F3
(bind '\76' yank) ; F4
(bind '\60' nextWindow) ; F5
(bind '\61' findFile) ; F6
(bind '\62' doSave) ; F7
(bind '\64' killWindow) ; F8
(bind '\65' winSearch) ; F9
(bind '\6d' repeatSearchBackward) ; F10
(bind '\67' repeatSearchForward) ; F11
(bind '\6f' yank) ; F12
(bind '\69' startKeyboardMacro) ; F13
(bind '\6b' endKeyboardMacro) ; F14
(bind '\71' executeKeyboardMacro) ; F15
(bind '\35' startEscape) ; 'esc' key
(bind '\75' deleteChar) ; 'del' key
(bind '\72' getHelp) ; 'help' key
(bind '\73' beginningOfBuffer) ; 'home'
(bind '\77' endOfBuffer) ; 'end'
(bind '\74' pageBack) ; 'page up'
(bind '\79' pageForward) ; 'page down'
#endif OLDMAC
(menu "keyAscii"
"getAscii"
"insertAscii"
"(-"
"/-commentBox"
"/=uncommentBox"
"(-"
"transposeChars"
"transposeWords")
; Obviously, you won't want to use these same file sets, but they are an example.
(fileSet edit1
"jpl341:Pete:Alpha.101:EditSource:bindings.c"
"jpl341:Pete:Alpha.101:EditSource:center.c")
(fileSet edit
"jpl341:Pete:Alpha.101:EditSource:bindings.c"
"jpl341:Pete:Alpha.101:EditSource:center.c"
"jpl341:Pete:Alpha.101:EditSource:dir.c"
"jpl341:Pete:Alpha.101:EditSource:emacs.c"
"jpl341:Pete:Alpha.101:EditSource:file_set.c"
"jpl341:Pete:Alpha.101:EditSource:frills.c"
"jpl341:Pete:Alpha.101:EditSource:io.c"
"jpl341:Pete:Alpha.101:EditSource:key.c"
"jpl341:Pete:Alpha.101:EditSource:main.c"
"jpl341:Pete:Alpha.101:EditSource:misc.c"
"jpl341:Pete:Alpha.101:EditSource:search.c"
"jpl341:Pete:Alpha.101:EditSource:settings.c"
"jpl341:Pete:Alpha.101:EditSource:text.c"
"jpl341:Pete:Alpha.101:EditSource:undo.c"
"jpl341:Pete:Alpha.101:EditSource:windows.c")
(fileSet includes
"jpl341:Pete:Alpha.101:THINK C:Mac #includes:ColorToolBox.h"
"jpl341:Pete:Alpha.101:THINK C:Mac #includes:FileMgr.h"
"jpl341:Pete:Alpha.101:THINK C:Mac #includes:PrintTraps.h"
"jpl341:Pete:Alpha.101:THINK C:Mac #includes:ScrapMgr.h"
"jpl341:Pete:Alpha.101:THINK C:Mac #includes:pascal.h"
"jpl341:Pete:Alpha.101:THINK C:Mac #includes:HFS.h"
"jpl341:Pete:Alpha.101:THINK C:Mac #includes:ScriptMgr.h"
"jpl341:Pete:Alpha.101:THINK C:C Libraries:headers:string.h"
"jpl341:Pete:Alpha.101:THINK C:C Libraries:headers:stdio.h"
"jpl341:Pete:Alpha.101:THINK C:C Libraries:headers:unix.h"
"jpl341:Pete:Alpha.101:THINK C:C Libraries:headers:stddef.h"
"jpl341:Pete:Alpha.101:THINK C:C Libraries:headers:math.h"
"jpl341:Pete:Alpha.101:THINK C:C Libraries:headers:errno.h"
"jpl341:Pete:Alpha.101:THINK C:C Libraries:headers:stdlib.h"
"jpl341:Pete:Alpha.101:THINK C:C Libraries:headers:ctype.h"
"jpl341:Pete:Alpha.101:THINK C:C Libraries:headers:stdarg.h")